package com.cqut.forum.dao;

import java.util.List;
import java.util.Map;

import com.cqut.forum.entity.PictureGroup;

/**
 * 图片分组dao接口
 * @author yangxun
 */
public interface PictureGroupDao extends BaseDao{
	public List<PictureGroup> getGroups(int userId);
	public PictureGroup getByName(int userId,String pgName);
	public PictureGroup getByName(String pgName);
	public int getGroupId(int pictureId);
	public List<Map<String, Object>> getGroupsLikeName(String groupName);
	public List<Map<String, Object>> getSysteGroups();
	public List<Map<String, Object>> getShowGroups();
	public boolean update(int groupId,String groupName,boolean state);
}
